home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
arexx
/
rxasl
/
examples
/
font.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-05-17
|
608b
|
30 lines
/*
ReqFont() example
*/
if ~show("L","rxasl.library") then
if ~addLib("rxasl.library",0,-30) then
say "can't find rxasl.library"
a.FallBack = 1
a.Dofrontpen = 1
a.Dobackpen = 1
a.Dodrawmode = 1
a.Dostyle = 1
a.Fixedwidthonly = 0
a.Frontpen = 1
a.Backpen = 0
a.Name = "topaz"
res=ReqFont(a)
if res==0 then do
say "Name: " a.Name
say "Size: " d2x(a.Size)
say "Styles: " d2x(a.Styles)
say "Flags: " d2x(a.Flags)
say "DrawMode:" d2x(a.DrawMode)
say "FrontPen:" a.FrontPen
say "BackPen: " a.BackPen
end
else if res~=-1 then say GetRxAslString(res) "(" || RXASLERROR || ")"